package com.ebupt.migu.music.scenelabels.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ebupt.migu.music.common.entity.ResultObject;
import com.ebupt.migu.music.scenelabels.service.SceneLabelsService;

import lombok.extern.slf4j.Slf4j;

/**
 * @author liuyangyang@e-byte.com
 * @description: TODO
 * @date 2024/6/25 9:51
 */
@Slf4j
@RestController
@RequestMapping("/scene/labels")
public class SceneLabelsController {
    @Autowired
    private SceneLabelsService service;

    @RequestMapping("/token/encrypt")
    public ResultObject encrypt(@RequestBody String params) {
        return service.encrypt(params);
    }

    @RequestMapping("/token/decrypt")
    public ResultObject decrypt(@RequestBody String params) {
        return service.decrypt(params);
    }

    @RequestMapping("/callback")
    public ResultObject callback(@RequestBody String params){
        return service.callback(params);
    }

}
